package com.sjq.common.service;

import java.util.Map;

import com.sjq.common.entity.Role;
import com.sjq.common.exception.ServiceException;
import com.sjq.common.util.PageResults;

public interface RoleService {

	// 分页查询
	public PageResults<?> findRoleByPage(int pageNo, int pageSize, Role role) throws ServiceException;
	
	// 查询所有
	public PageResults<?> selectAllRole() throws ServiceException;
	
	//新增角色
	public void addRole(Role role);
	
	//查询单个角色
	public Map<String,Object> findSingleRole(int role_id)throws ServiceException;
	
	//删除角色
	public void removeRole(int role_id);
	
	//修改角色
	public void modifyRole(Role role);
	
	//判断能否删除
	public int referenceRole(int role_id);
		
}
